Optimal. Leaf size=187 \[ -\frac{4 \tan ^9(c+d x)}{9 a^3 d}-\frac{15 \tan ^7(c+d x)}{7 a^3 d}-\frac{21 \tan ^5(c+d x)}{5 a^3 d}-\frac{13 \tan ^3(c+d x)}{3 a^3 d}-\frac{3 \tan (c+d x)}{a^3 d}+\frac{4 \sec ^9(c+d x)}{9 a^3 d}+\frac{\sec ^7(c+d x)}{7 a^3 d}+\frac{\sec ^5(c+d x)}{5 a^3 d}+\frac{\sec ^3(c+d x)}{3 a^3 d}+\frac{\sec (c+d x)}{a^3 d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.360108, antiderivative size = 187, normalized size of antiderivative = 1., number of steps used = 14, number of rules used = 10, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.37, Rules used = {2875, 2873, 3767, 2622, 302, 207, 2606, 30, 2607, 270} \[ -\frac{4 \tan ^9(c+d x)}{9 a^3 d}-\frac{15 \tan ^7(c+d x)}{7 a^3 d}-\frac{21 \tan ^5(c+d x)}{5 a^3 d}-\frac{13 \tan ^3(c+d x)}{3 a^3 d}-\frac{3 \tan (c+d x)}{a^3 d}+\frac{4 \sec ^9(c+d x)}{9 a^3 d}+\frac{\sec ^7(c+d x)}{7 a^3 d}+\frac{\sec ^5(c+d x)}{5 a^3 d}+\frac{\sec ^3(c+d x)}{3 a^3 d}+\frac{\sec (c+d x)}{a^3 d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2875
Rule 2873
Rule 3767
Rule 2622
Rule 302
Rule 207
Rule 2606
Rule 30
Rule 2607
Rule 270
Rubi steps
\begin{align*} \int \frac{\csc (c+d x) \sec ^4(c+d x)}{(a+a \sin (c+d x))^3} \, dx &=\frac{\int \csc (c+d x) \sec ^{10}(c+d x) (a-a \sin (c+d x))^3 \, dx}{a^6}\\ &=\frac{\int \left (-3 a^3 \sec ^{10}(c+d x)+a^3 \csc (c+d x) \sec ^{10}(c+d x)+3 a^3 \sec ^9(c+d x) \tan (c+d x)-a^3 \sec ^8(c+d x) \tan ^2(c+d x)\right ) \, dx}{a^6}\\ &=\frac{\int \csc (c+d x) \sec ^{10}(c+d x) \, dx}{a^3}-\frac{\int \sec ^8(c+d x) \tan ^2(c+d x) \, dx}{a^3}-\frac{3 \int \sec ^{10}(c+d x) \, dx}{a^3}+\frac{3 \int \sec ^9(c+d x) \tan (c+d x) \, dx}{a^3}\\ &=\frac{\operatorname{Subst}\left (\int \frac{x^{10}}{-1+x^2} \, dx,x,\sec (c+d x)\right )}{a^3 d}-\frac{\operatorname{Subst}\left (\int x^2 \left (1+x^2\right )^3 \, dx,x,\tan (c+d x)\right )}{a^3 d}+\frac{3 \operatorname{Subst}\left (\int x^8 \, dx,x,\sec (c+d x)\right )}{a^3 d}+\frac{3 \operatorname{Subst}\left (\int \left (1+4 x^2+6 x^4+4 x^6+x^8\right ) \, dx,x,-\tan (c+d x)\right )}{a^3 d}\\ &=\frac{\sec ^9(c+d x)}{3 a^3 d}-\frac{3 \tan (c+d x)}{a^3 d}-\frac{4 \tan ^3(c+d x)}{a^3 d}-\frac{18 \tan ^5(c+d x)}{5 a^3 d}-\frac{12 \tan ^7(c+d x)}{7 a^3 d}-\frac{\tan ^9(c+d x)}{3 a^3 d}-\frac{\operatorname{Subst}\left (\int \left (x^2+3 x^4+3 x^6+x^8\right ) \, dx,x,\tan (c+d x)\right )}{a^3 d}+\frac{\operatorname{Subst}\left (\int \left (1+x^2+x^4+x^6+x^8+\frac{1}{-1+x^2}\right ) \, dx,x,\sec (c+d x)\right )}{a^3 d}\\ &=\frac{\sec (c+d x)}{a^3 d}+\frac{\sec ^3(c+d x)}{3 a^3 d}+\frac{\sec ^5(c+d x)}{5 a^3 d}+\frac{\sec ^7(c+d x)}{7 a^3 d}+\frac{4 \sec ^9(c+d x)}{9 a^3 d}-\frac{3 \tan (c+d x)}{a^3 d}-\frac{13 \tan ^3(c+d x)}{3 a^3 d}-\frac{21 \tan ^5(c+d x)}{5 a^3 d}-\frac{15 \tan ^7(c+d x)}{7 a^3 d}-\frac{4 \tan ^9(c+d x)}{9 a^3 d}+\frac{\operatorname{Subst}\left (\int \frac{1}{-1+x^2} \, dx,x,\sec (c+d x)\right )}{a^3 d}\\ &=-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}+\frac{\sec (c+d x)}{a^3 d}+\frac{\sec ^3(c+d x)}{3 a^3 d}+\frac{\sec ^5(c+d x)}{5 a^3 d}+\frac{\sec ^7(c+d x)}{7 a^3 d}+\frac{4 \sec ^9(c+d x)}{9 a^3 d}-\frac{3 \tan (c+d x)}{a^3 d}-\frac{13 \tan ^3(c+d x)}{3 a^3 d}-\frac{21 \tan ^5(c+d x)}{5 a^3 d}-\frac{15 \tan ^7(c+d x)}{7 a^3 d}-\frac{4 \tan ^9(c+d x)}{9 a^3 d}\\ \end{align*}
Mathematica [A] time = 1.39842, size = 204, normalized size = 1.09 \[ \frac{322560 \log \left (\sin \left (\frac{1}{2} (c+d x)\right )\right )-322560 \log \left (\cos \left (\frac{1}{2} (c+d x)\right )\right )+\frac{196992 \sin (c+d x)-383157 \sin (2 (c+d x))+211648 \sin (3 (c+d x))-170292 \sin (4 (c+d x))+50496 \sin (5 (c+d x))+14191 \sin (6 (c+d x))-510876 \cos (c+d x)+317952 \cos (2 (c+d x))-28382 \cos (3 (c+d x))+20352 \cos (4 (c+d x))+85146 \cos (5 (c+d x))-11776 \cos (6 (c+d x))+357504}{\left (\cos \left (\frac{1}{2} (c+d x)\right )-\sin \left (\frac{1}{2} (c+d x)\right )\right )^3 \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right )^9}}{322560 a^3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.158, size = 271, normalized size = 1.5 \begin{align*} -{\frac{1}{24\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-3}}-{\frac{1}{16\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-2}}-{\frac{9}{32\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) -1 \right ) ^{-1}}+{\frac{8}{9\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-9}}-4\,{\frac{1}{d{a}^{3} \left ( \tan \left ( 1/2\,dx+c/2 \right ) +1 \right ) ^{8}}}+{\frac{72}{7\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-7}}-{\frac{52}{3\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-6}}+{\frac{219}{10\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-5}}-{\frac{83}{4\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-4}}+{\frac{193}{12\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-3}}-{\frac{75}{8\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-2}}+{\frac{201}{32\,d{a}^{3}} \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) +1 \right ) ^{-1}}+{\frac{1}{d{a}^{3}}\ln \left ( \tan \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.10388, size = 686, normalized size = 3.67 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.0486, size = 676, normalized size = 3.61 \begin{align*} \frac{736 \, \cos \left (d x + c\right )^{6} - 1422 \, \cos \left (d x + c\right )^{4} - 510 \, \cos \left (d x + c\right )^{2} - 315 \,{\left (3 \, \cos \left (d x + c\right )^{5} - 4 \, \cos \left (d x + c\right )^{3} +{\left (\cos \left (d x + c\right )^{5} - 4 \, \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )} \log \left (\frac{1}{2} \, \cos \left (d x + c\right ) + \frac{1}{2}\right ) + 315 \,{\left (3 \, \cos \left (d x + c\right )^{5} - 4 \, \cos \left (d x + c\right )^{3} +{\left (\cos \left (d x + c\right )^{5} - 4 \, \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )} \log \left (-\frac{1}{2} \, \cos \left (d x + c\right ) + \frac{1}{2}\right ) - 2 \,{\left (789 \, \cos \left (d x + c\right )^{4} + 235 \, \cos \left (d x + c\right )^{2} + 35\right )} \sin \left (d x + c\right ) - 140}{630 \,{\left (3 \, a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3} +{\left (a^{3} d \cos \left (d x + c\right )^{5} - 4 \, a^{3} d \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.24968, size = 252, normalized size = 1.35 \begin{align*} \frac{\frac{10080 \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) \right |}\right )}{a^{3}} - \frac{105 \,{\left (27 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 48 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 25\right )}}{a^{3}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1\right )}^{3}} + \frac{63315 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{8} + 412020 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{7} + 1273440 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{6} + 2324700 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} + 2731302 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} + 2097228 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 1032552 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 297828 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 40127}{a^{3}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1\right )}^{9}}}{10080 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]